put "Please Enter ALL Data" into card field "Report"
play "Boing"
flash 4
end if
if card field "From" is empty then
put "Please Enter ALL Data" into card field "Report"
play "Boing"
flash 4
if card field "ResName" is empty then
end if
put "Please Enter ALL Data" into card field "Report"
play "Boing"
flash 4
end if
if card field "ResType" is empty then
put "Please Enter ALL Data" into card field "Report"
play "Boing"
flash 4
else ResCopy card field "From",card field "To",card field "ResType",card field "ResName"
get the result
if it is "ERR1" then
put "Incorrect Information!!!" into card field "Report"
end if
if it is "ERR2" then
put "Source file could not be opened!!!" into card field "Report"
end if
if it is "ERR3" then
put "Destination file could not be created!!!" into card field "Report"
end if
if it is "ERR4" then
put "Resource was not found!!!" into card field "Report"
else
put "Copy Completed…" into card field "Report"
end if
flash 2
end mouseUp
-- part 11 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=17 top=133 right=150 bottom=166
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: SourceDes
-- part 12 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=17 top=199 right=216 bottom=319
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: To
-- part 13 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=17 top=155 right=172 bottom=319
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: From
-- part 14 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=17 top=177 right=194 bottom=211
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: DestinationRes
-- part 15 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=360 top=155 right=172 bottom=462
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Get PathName
----- HyperTalk script -----
on mouseUp
put FileName() into card field "From"
end mouseUp
-- part 16 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=360 top=198 right=215 bottom=462
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Get PathName
----- HyperTalk script -----
on mouseUp
put FileName("STAK") into card field "To"
end mouseUp
-- part 17 (field)
-- low flags: 01
-- high flags: 0007
-- rect: left=331 top=220 right=294 bottom=480
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: ResCopyAbout
-- part 18 (field)
-- low flags: 01
-- high flags: 0001
-- rect: left=304 top=133 right=147 bottom=480
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Report
----- HyperTalk script -----
On MouseUp
put "" into card field "Report"
end mouseUp
-- part 19 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=304 top=117 right=131 bottom=369
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 256
-- line height: 12
-- part name: Report.Des
-- part contents for background part 45
----- text -----
Total Cards:
-- part contents for background part 3
----- text -----
7:39 PM
-- part contents for background part 2
----- text -----
Saturday, December 19, 1987
-- part contents for background part 1
----- text -----
Card:
-- part contents for background part 5
----- text -----
7
-- part contents for background part 43
----- text -----
8
-- part contents for background part 42
----- text -----
Scripting
-- part contents for card part 2
----- text -----
Copy Resource
-- part contents for card part 6
----- text -----
Resource Name:
-- part contents for card part 9
----- text -----
Resource Type:
-- part contents for card part 11
----- text -----
Source File PathName:
-- part contents for card part 14
----- text -----
Destination File PathName:
-- part contents for card part 17
----- text -----
This card will copy Resources for you from one file (Can be any type.) to a HyperCard stack. You must know the resource's type (Its a four letter exspression like
"XCMD" or "PICT" and it name. You need not The source file pathname is the pathname of the file you want to copy the resource FROM, this file is not changed. The destination file pathname is the file in which you want to copy the resocurce INTO. These two pathnames can be easily entered by clicking the "Get PathName" buttons next to them, they will use the standard Mac file section dialog box to promtp you for a file. A full pathname might not fit into the field window but don't worry its there._Trust me…